﻿@model DHQGHN.PM2.Models.EnumeratorModel

<script src="~/Scripts/jquery.validate.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.js"></script>

@using (Html.BeginForm("CreateAdminTinh", "Enumerator", FormMethod.Post, new { id = "CreateAdminTinh" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <div class="row">
        <div class="col-md-12">
            <fieldset style="">
                <legend style="color: #2D5F8B">Tạo mới Quản Trị Viên cấp Tỉnh/TP</legend>
                <div>
                    <div class="row">
                        <div class="col-md-4">
                            @Html.Label("Nhóm", new { @class = "text-center" }) <font size="3" color="red" style="visibility:hidden;">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.TextBox("GROUP", "Quản trị cấp Thành Phố - Tỉnh", new { @class = "form-control form-control-add ", style = " ", @readOnly = true })
                            @Html.HiddenFor(model => model.GROUPCODE, new { @Value = "AT" , @id="GroupCode" })
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Cấp Tỉnh", new { @class = "text-center" }) <font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.DropDownListFor(model => model.ADM_CODE, ViewBag.ListTinh as List<SelectListItem>, new {id = "Level1t", @class = "form-control  form-control-add ", style = "" })
                            <span style="color: red;">@Html.ValidationMessageFor(model => model.ADM_CODE)</span>
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Họ tên", new { @class = "text-center" }) <font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">

                            @Html.TextBoxFor(model => model.FULL_NAME, "", new {  @class = "form-control form-control-add ", style = "", placeholder = "nhập họ tên" })
                            <span style="color: red;">@Html.ValidationMessageFor(model => model.FULL_NAME)</span>
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Tên đăng nhập", new { @class = "text-center" }) <font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.TextBoxFor(model => model.USERNAME, "", new { @class = "form-control form-control-add ", style = "", placeholder = "tên đăng nhập" })
                            <span style="color: red;">@Html.ValidationMessageFor(model => model.USERNAME)</span>
                        </div>

                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.LabelFor(m => m.EMAIL, new { @class = "text-center"})<font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.TextBoxFor(m => m.EMAIL, new { @class = "form-control form-control-add", style = "", placeholder = "Email của tài khoản" })
                            <span style="color: red;">@Html.ValidationMessageFor(m => m.EMAIL)</span>
                        </div>
                    </div>   
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Mô tả", new { @class = "text-center" }) 
                            <font size="3" color="red" style="visibility:hidden;">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.TextAreaFor(m => m.DESCRIPTIONS, new { @class = "form-control form-control-add  ", style = "", @rows = 3 })
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
}
